//
//  MBProgressHUD+Manager.h
//  商互通
//
//  Created by 吴志勇 on 16/11/4.
//  Copyright © 2016年 sdy. All rights reserved.
//

#import <MBProgressHUD/MBProgressHUD.h>

@interface MBProgressHUD (Manager)
+ (void)show:(NSString *)text;

+ (void)showtext:(NSString *)text icon:(NSString *)icon view:(UIView *)view;

+ (void)showSuccess:(NSString *)success;
+ (void)showSuccess:(NSString *)success toView:(UIView *)view;

+ (void)showError:(NSString *)error;
+ (void)showError:(NSString *)error toView:(UIView *)view;

+ (MBProgressHUD *)showMessage:(NSString *)message;
+ (MBProgressHUD *)showMessage:(NSString *)message toView:(UIView *)view;

+ (void)hideHUD;
+ (void)hideHUDForView:(UIView *)view;

+ (void)showLoading;
+ (void)showSuccess;
+ (void)showError;

//动画图
+ (MBProgressHUD *)createLoadingAnimationViewtoView:(UIView *)view;
//拍一拍
+ (MBProgressHUD *)createPaiYiPaiLoadingAnimationViewtoView:(UIView *)view;
@end
